package org.example.state;

/**
 * @author wangbin
 * @date 2024/4/20
 * @vesion 1.0
 */
public class RaffleActivity{
    State state =null;
    int count = 0;


    public RaffleActivity(int count) {
        this.state=getNoRaffleState();
        this.count = count;
    }



    public void deductMoney() {
        state.deductMoney();
    }


    public boolean raffle() {
        return state.raffle();
    }


    public void dispensePrize() {
        state.dispensePrize();
    }

    public State getNoRaffleState(){
        return new NoRaffleState(this);
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
